package com.dlq.menu.pojo;

import java.util.List;

/**
 * 
 * @author dell
 *	菜单
 */
public class Menu {
private Integer uuid;    //菜单id	
private String name;		//菜单名称
private String url;			// 菜单地址
private Integer puuid;		//菜单级别

private List<Menu> mm;
public List<Menu> getMm() {
	return mm;
}
public void setMm(List<Menu> mm) {
	this.mm = mm;
}


public Integer getUuid() {
	return uuid;
}
public void setUuid(Integer uuid) {
	this.uuid = uuid;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getUrl() {
	return url;
}
public void setUrl(String url) {
	this.url = url;
}
public Integer getPuuid() {
	return puuid;
}
public void setPuuid(Integer puuid) {
	this.puuid = puuid;
}




@Override
public String toString() {
	return "Menu [uuid=" + uuid + ", name=" + name + ", url=" + url
			+ ", puuid=" + puuid + ", mm=" + mm + "]";
}
public Menu(Integer uuid, String name, String url, Integer puuid) {
	super();
	this.uuid = uuid;
	this.name = name;
	this.url = url;
	this.puuid = puuid;
}
public Menu() {
	super();
}


@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((name == null) ? 0 : name.hashCode());
	result = prime * result + ((puuid == null) ? 0 : puuid.hashCode());
	result = prime * result + ((url == null) ? 0 : url.hashCode());
	result = prime * result + ((uuid == null) ? 0 : uuid.hashCode());
	return result;
}
@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	Menu other = (Menu) obj;
	if (name == null) {
		if (other.name != null)
			return false;
	} else if (!name.equals(other.name))
		return false;
	if (puuid == null) {
		if (other.puuid != null)
			return false;
	} else if (!puuid.equals(other.puuid))
		return false;
	if (url == null) {
		if (other.url != null)
			return false;
	} else if (!url.equals(other.url))
		return false;
	if (uuid == null) {
		if (other.uuid != null)
			return false;
	} else if (!uuid.equals(other.uuid))
		return false;
	return true;
}





}
